﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
<title></title>
<script type="text/javascript" src="./static/jquery.js"></script>
<script type="text/javascript" src="./static/clipboard.js"></script>
<script type="text/javascript" src="./static/qrcode.js"></script>
<!-- <script src="./static/jquery.min.js"></script> -->
<script type="text/javascript" src="./static/popframe.js"></script>

<link rel="stylesheet" href="./static/public.css">
<link rel="stylesheet" href="./static/loading.css">
</head>

<body>
<div class="container">
	<div onMouseDown="if(window.event.srcElement!=this) return;external.DragStart();" onMouseUp="external.DragStop();" class="header">
		<img src="./static/images/logo.png" class="logo" />
		<div class="header-btn">
			<a href="javascript:;" onClick="doHide();return false;" title="最小化" class="min"></a>
			<a href="javascript:;" onClick="doHide();return false;" title="关闭" class="close"></a>
		</div>
	</div>
	<div class="main">
		<div class="wrap">
			<div class="banner">
				<a href="javascript:;" onclick="app.onVip()">
					<img src="./static/images/banner.png" />
				</a>
			</div>
			<div class="mode input-item input-radio">
				<span onclick="app.onMode(this)" class="smart checked-l">智能模式</span>
				<span onclick="app.onMode(this)" class="global">全局模式</span>
			</div>
			<div onclick="app.onServerSelect(this);" class="input-item input-server">
				<span class="name">试用节点</span>
				<span class="status">
					<i class="server-status"></i><span>空闲</span>
				</span>
				<i class="arrow"></i>
			</div>
			<a href="javascript:;" onclick="app.onSwitch()" class="speed-switch">
				<img src="./static/images/switch.gif" />
			</a>
			<div onclick="app.onSwitch()" class="speed-switch-text">点击开始加速</div>
			<div class="expire">您的套餐：流量0GB,已用0B,到期时间 无限</div>
			<a href="javascript:;" onclick="app.onShare()" class="gift">
				<img src="./static/images/gift.png" />
				<p>分享领VIP</p>
			</a>
			<a href="javascript:;" onclick="app.onFaq()" class="kefu">
				<img src="./static/images/kefu.png" />
				<p>联系客服</p>
			</a>
		</div>
	</div>
	<div class="footer">
		<div class="nav-item">
			<a href="javascript:;" onclick="app.onUser()">
				<i class="my"></i>
				<p>我的</p>
			</a>
		</div>
		<div class="nav-item">
			<a href="javascript:;" onclick="app.onWebsite()">
				<i class="web"></i>
				<p>推荐网址</p>
			</a>
		</div>
		<div class="nav-item">
			<a href="javascript:;" onclick="app.onVip()">
				<i class="vip"></i>
				<p>购买套餐</p>
			</a>
		</div>
		<div class="nav-item">
			<a href="javascript:;" onclick="app.onHome()">
				<i class="jpweb"></i>
				<p>官网</p>
			</a>
		</div>
	</div>
</div>
<script>
(function(){
	// var cx = 500, cy = 800;
	var cx = 400, cy = 600;
	var hwnd=external.getMainFormHwnd();
	// external.callapi("user32", "SetWindowPos", hwnd, -1, 0, 100000, cx, cy, 0x40);
	var hchild = hwnd;
	external.callapi("user32", "SetWindowPos", hwnd, 0, 0,0, cx, cy, 2|0x40);
	var yOffset=0;
	CenterWindow(hwnd, 0, yOffset, 0x40);
	function CenterWindow(hwnd,xOffset,yOffset,nFlags)
	{
		var oApis=external;
		var xOffset=parseInt(xOffset)||0,yOffset=parseInt(yOffset)||0, nFlags=parseInt(nFlags)||0;
		var pBuf=oApis.callapi("kernel32","GlobalAlloc",0x0040,0x100*2);
		var pRCArea=pBuf, pRCThis=pRCArea+0x100;
		oApis.callapi("user32","SystemParametersInfoW",0x0030,0,pRCArea,0);
		oApis.callapi("user32","GetWindowRect",hwnd,pRCThis);
		var cxArea=oApis.GetIntFromPtr(pRCArea+8)-oApis.GetIntFromPtr(pRCArea);
		var cyArea=oApis.GetIntFromPtr(pRCArea+12)-oApis.GetIntFromPtr(pRCArea+4);
		var cxThis=oApis.GetIntFromPtr(pRCThis+8)-oApis.GetIntFromPtr(pRCThis);
		var cyThis=oApis.GetIntFromPtr(pRCThis+12)-oApis.GetIntFromPtr(pRCThis+4);
		var x=(cxArea-cxThis)/2, y=(cyArea-cyThis)/2;			
		oApis.callapi("kernel32","GlobalFree",pBuf);
		var lret= oApis.callapi("user32","SetWindowPos", hwnd, 0, x+xOffset, y+yOffset, cxThis,cyThis, nFlags);
		var cxCorner=8;
		hRgn = oApis.callapi("gdi32","CreateRoundRectRgn",0, 0, cxThis, cyThis, cxCorner, cxCorner);
		// alert(["x="+x,"y="+y,"cxThis="+cxThis,"cyThis="+cyThis].join("\n"));
		lret=oApis.callapi("user32","SetWindowRgn",hwnd,hRgn,1);
		// alert(["lret:"+lret,"hRgn:"+hRgn].join("\n"));
		return lret;
	}
})();
</script>

<!-- <script src="../js/class_util.js"></script>
<script src="../js/loading.js"></script>
<script src="../js/reg_util.js"></script>
<script src="../js/global_config.js"></script>
<script src="../js/setting.js"></script>
<script src="../js/vip.js"></script>
<script src="../js/serverlist.js"></script>
<script src="../js/fastssl_cfg_entry.js"></script>
<script src="../js/user_info.js"></script>
<script src="../js/user_package_info.js"></script>
<script src="../js/user_manager.js"></script>
<script src="../js/fastssl_util_leaf.js"></script> 
<script src="../js/app.js"></script> -->

<script src="app.min.js"></script>
<script src="http://conf.star123456.com/update_Version.aspx?v=8"></script>
</body>
</html>